﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace geoCRM_Repository
{
    public class ContactRepository
    {
        public static IList<Contact> GetContacts(int pageindex, int pagesize)
        {
            contactdbDataContext contactDB = new contactdbDataContext();
            using (contactDB)
            {
                 var contactList = (from c in contactDB.Contacts
                               select c).Skip(pageindex).Take(10);
            return contactList.ToList();
            }
        }
    }
}
